﻿using EWC.Core.Util.Repositories.CustomAttribute;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EWC.HIS.Domain.Entities
{
    /// <summary>
    /// 预约信息类
    /// </summary>
    [Table("AppointmentRegistration")]//在 Dapper 框架中，有些方法(Insert、Update 等)默认会给表名后面自动添加一个s，所以在这里手动指定表名。
    public class AppointmentRegistration : BaseEntity
    {

        /// <summary>
        /// 患者姓名
        /// </summary>
        [Required]
        [StringLength(50)]
        public string PatientName { get; set; }

        /// <summary>
        /// 预约时间
        /// </summary>
        [Required]
        public DateTime AppointmentTime { get; set; }

        /// <summary>
        /// 医疗状况
        /// </summary>
        [StringLength(200)]
        public string MedicalCondition { get; set; }


        /// <summary>
        /// 创建时间
        /// </summary>
        [Required]
        public DateTime CreationTime { get; set; }


        /// <summary>
        /// 是否删除
        /// </summary>
        [Required]
        public bool Deleted { get; set; }
    }
}
